<extend name="Public/common"/>
<block name="othercss">
</block>
<block name="body">
<div class="mian" style="background-color: #f4f4f4">

    <div class="help">
        <div class="box">
            <div class="loc"><i class="icon iconloc"></i>您现在在这里：<a href="{:urlrotue('/')}">百宝库</a> > <a href="{:urlrotue('Member/index')}">个人中心</a> > <span class="on">我的优惠券</span>
            </div>
            <div class="clearfix help_list">
                <div class="right">
                    <h2  class="title">我的优惠券</h2>
                    <ul class="wdyhq-list clearfix">    
                   <foreach name="list" item="item">
                   <li <if condition="$item['is_use'] eq 1 OR ($item['nowtime'] lt $item['begin_time']) OR ($item['nowtime'] gt $item['end_time'])">class="on"</if>>
        
                            <a>
                                <div class="yhq-header">券</div>
                                <div class="ys1">优惠券</div>
                                <div class="ys2">
                                    <div class="clearfix" style="font-weight: bold "><span style="font-size:60px">{$item.money|floattoint}</span><div  class="span">￥</div></div>
                                    <div class="tt">满{$item.cart_total}元使用</div>
                                    <div class="tt1">
                                        <if condition="$item['is_use'] eq 1">
                                            已使用
                                            <elseif condition="$item['nowtime'] lt $item['begin_time']"/>
                                            未开放
                                            <elseif condition="$item['nowtime'] gt $item['end_time']"/>
                                            已过期
                                            <else/>
                                            {$item.end_time|stringtoday=2}前有效
                                        </if>
                                    </div>
                                </div>
                            </a>
                        </li>
                        </foreach>
    
  </ul>
  <empty name="list">
  <div class="lans_no">您还没有优惠券哦！</div>
  </empty>

                       <div class="pagetion">
                          {$page}
                        </div>
                </div>
                <include file="Member:left_menu"/>
            </div>
        </div>
    </div>
</div>



<block name="otherjs">

</block>


